# database/base.py
from sqlalchemy.ext.declarative import declarative_base

# 全局唯一的声明式基类
Base = declarative_base()

# 可选：添加公共字段（如时间戳）
# from sqlalchemy import Column, DateTime, func
# class BaseModel(Base):
#     __abstract__ = True
#     created_at = Column(DateTime, default=func.now())
#     updated_at = Column(DateTime, default=func.now(), onupdate=func.now())